package com.woniu.repaircenter.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.woniu.repaircenter.models.dto.RepairNoticeDTO;
import com.woniu.repaircenter.service.model.RepairNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 维修公告表 Mapper 接口
 * </p>
 *
 * @author 吕雨泽
 * @since 2024年12月06日
 */
@Mapper
public interface RepairNoticeMapper extends BaseMapper<RepairNotice> {

    Integer insertRepairNotice(RepairNotice repairNotice);

    List<RepairNoticeDTO> listRepairNotice(RepairNotice repairNotice);

    Integer updateRepairNotice(RepairNotice repairNotice);

    RepairNotice selectByNoticeId(@Param("noticeId") Long noticeId);

    void updateNoticeStatus(RepairNotice repairNotice);

    List<RepairNotice> selectAllProductViews();

    List<Long> selectAllNoticeIds();
}
